package com.yang.designmode.ActionMode.mediator;

// 同事A 类
public class ColleagueA extends Colleague {
    public ColleagueA(Mediator mediator) {
        super(mediator);
    }

    @Override
    public void send(String message) {
        // this 表示当前正在执行的 ColleagueA 对象
        mediator.send(message, this);
    }

    @Override
    public void receive(String message) {
        System.out.println("ColleagueA received: " + message);
    }
}
